package com.mumu.studykotlin

import com.mumu.studykotlin.gra.NULLDemo
import com.mumu.studykotlin.gra.StringDemo
import com.mumu.studykotlin.gra.inherit.Persion
import org.junit.Test

/**
 *edie create on 2019/7/24
 *
 */
class StringTest {

    @Test
    fun _string(){
        val demo = StringDemo()
      demo.doStr("666")
    }

    @Test
    fun _doInner(){
        val demo = StringDemo()
        demo.doInner("悟空")
    }

    @Test
    fun _Null(){
        NULLDemo().toStr(null)
    }

    @Test
    fun _for(){
        NULLDemo().doFor()
    }

    @Test
    fun _moreStr(){
//        StringDemo().moreStr()
        Persion("小王").Drink()
    }

    fun Persion.Drink(){
        println("我要喝$")
    }
}